package com.wingscode.modules.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wingscode.modules.common.entity.UserOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 下单
 *
 * @author yan
 */
@Mapper
public interface UserOrderDao extends BaseMapper<UserOrderEntity> {

    IPage<UserOrderEntity> orderList(IPage<UserOrderEntity> page, @Param("userId") Integer userId, @Param("agentId") Integer agentId);

    IPage<UserOrderEntity> queryPage(IPage<UserOrderEntity> page, @Param("mobile") String mobile, @Param("company") String company,
                 @Param("number") String number, @Param("startTime") String startTime, @Param("endTime") String endTime,
                 @Param("source") Integer source, @Param("type") Integer type, @Param("state") Integer state);

    UserOrderEntity orderInfo(@Param("id") Integer id);
}
